package com.steward.server.card;

import com.steward.commons.Result;
import com.steward.dto.card.CardConsumeDTO;
import com.steward.dto.card.OrderDTO;
import com.steward.dto.card.UserCardDTO;

import java.util.List;

public interface CardService {
	
	/**
	 * 
	 * @param userId
	 * @return
	 */
	public Result<List<UserCardDTO>> queryUserCardList(String userId);
	
	
	/**
	 * 
	 * @param cardId
	 * @return
	 */
	public Result<List<CardConsumeDTO>> queryCardConsumeList(String cardId);

    /**
     * 查询加油卡折扣值
     * @param orderId 加油卡卡号
     * @return
     */
	public  Result<Double> queryOilCardRate(String orderId) ;

	/**
	 * 创建
	 * @param UserID
	 * @param OilCardID
	 * @param pay_amt
	 * @param payType
     * @return
     */
	public Result<OrderDTO> createOilPayOrder(String UserID , String OilCardID, double pay_amt, int payType) ;

}
